﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="frmBusquedaSOAP.aspx.vb" Inherits="BCS.SOAP2012.BackEnd.frmBusquedaSOAP" %>

<%@ Register assembly="Anthem" namespace="Anthem" tagprefix="anthem" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">
    <title>SOAP Cliente Gratis</title>
    <link href="css/chile.css" rel="stylesheet" type="text/css" />
    <script src="Js/valFormatInput.js" type="text/javascript"></script>
    <!-- CALENDARIO -->
    <script type="text/javascript" src="cal/Calendario.js"></script>
    <link href="cal/Calendario.css" rel="stylesheet" type="text/css" />
    <!-- FIN CALENDARIO -->
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="left" class="titulotabla">SOAP CLIENTES GRATIS</td>
                </tr>
                <tr>
                    <td height="" align="left" valign="middle" class="subtitulos">CRITERIOS DE B&Uacute;SQUEDA</td>
                </tr>
                <tr>
                    <td>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="11%" height="" align="left" valign="middle"  class="textostabla">Rut</td>
                                <td width="2%" height="" align="left" valign="middle"  class="textostabla">:</td>
                                <td height="" align="left" valign="middle"  class="textostabla" style="width: 23%">
                                    <anthem:TextBox ID="txtRUTCliente" runat="server" MaxLength="9" />&nbsp;-&nbsp;
                                    <anthem:TextBox ID="txtDVRUTCliente" runat="server" MaxLength="1" Width="20px" />
                                </td>
                                <td height="" align="left" valign="middle"  class="textostabla" style="width: 1%">&nbsp;</td>
                                <td width="13%" height="" align="left" valign="middle"  class="textostabla">Patente</td>
                                <td width="2%" height="" align="left" valign="middle"  class="textostabla">:</td>
                                <td width="40%" height="" align="left" valign="middle"  class="textostabla">
                                    <anthem:TextBox ID="txtPatente" runat="server" MaxLength="6" Width="100px" />
                                </td>
                            </tr>
                            <tr>
                                <td height="" align="left" valign="middle"  class="textostabla">N&deg; Seguro </td>
                                <td height="" align="left" valign="middle"  class="textostabla">:</td>
                                <td height="" align="left" valign="middle"  class="textostabla" style="width: 23%">
                                    <anthem:TextBox ID="txtNroSeguro" runat="server" MaxLength="22" />
                                </td>
                                <td height="" align="left" valign="middle"  class="textostabla" style="width: 1%">&nbsp;</td>
                                <td height="" align="left" valign="middle"  class="textostabla">Rango Fecha</td>
                                <td height="" align="left" valign="middle"  class="textostabla">:</td>
                                <td>
                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td height="" align="left" valign="middle"  class="textostabla">Inicio</td>
                                            <td height="" align="left" valign="middle"  class="textostabla">
                                                <anthem:TextBox ID="txtFechaInicio" runat="server"  
                                                     Width="80px" Enabled="False"></anthem:TextBox>
                                                <img id="imFechaInicio" alt="" src="images/calendar_icon.gif" style="width: 22px; height: 19px" onclick="return imFechaInicio_onclick()"/>
                                                &nbsp;
                                                <anthem:Label ID="LblFormatoFecha0" runat="server" text="dd/mm/aaaa" />
                                                <script type="text/javascript">
                                                    Calendar.setup({
                                                        inputField: "txtFechaInicio",
                                                        ifFormat: "%d/%m/%Y",
                                                        button: "imFechaInicio",
                                                        align: "Tl",
                                                        singleClick: true
                                                    });
                                                    function imFechaInicio_onclick() {
                                                    }
                                                </script>
                                            </td>
                                            <td height="" align="left" valign="middle"  class="textostabla">-</td>
                                            <td height="" align="left" valign="middle"  class="textostabla">Termino</td>
                                            <td height="" align="left" valign="middle"  class="textostabla">
                                                <anthem:TextBox ID="txtFechaTermino" runat="server" Width="80px" Enabled="False"></anthem:TextBox>
                                                <img id="imFechaTermino" alt="" src="images/calendar_icon.gif" style="width: 22px; height: 19px" onclick="return imFechaTermino_onclick()"/>
                                                &nbsp;
                                                <anthem:Label ID="Label1" runat="server" text="dd/mm/aaaa" />
                                                <script type="text/javascript">
                                                    Calendar.setup({
                                                        inputField: "txtFechaTermino",
                                                        ifFormat: "%d/%m/%Y",
                                                        button: "imFechaTermino",
                                                        align: "Tl",
                                                        singleClick: true
                                                    });
                                                    function imFechaTermino_onclick() {
                                                    }
                                                </script>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td height="" align="left" valign="middle"  class="textostabla">Estado</td>
                                <td height="" align="left" valign="middle"  class="textostabla">:</td>
                                <td height="" align="left" valign="middle"  class="textostabla" style="width: 23%" colspan="5">
                                    <anthem:DropDownList ID="ddlEstado" runat="server">
                                        <asp:ListItem Value="-999" Text = "Todas" Selected="True" />
                                        <asp:ListItem Value="1" Text = "OK" />
                                        <asp:ListItem Value="-1" Text = "Error" />
                                    </anthem:DropDownList>
                                 </td>
                            </tr>
                            <tr>
                                <td colspan="7">&nbsp;</td>
                            </tr>
                            <tr>
                                <td colspan="7" align="left">
                                    <table width="200" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <anthem:Button CssClass="botones01" runat="server" ID="btnLimpiar" Text="Limpiar" />
                                            </td>
                                            <td>&nbsp;</td>
                                            <td>
                                                <anthem:Button CssClass="botones01" runat="server" ID="btnBuscar" Text="Buscar" 
                                                    EnabledDuringCallBack="False" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td align="center">
                        <anthem:DataGrid width="640" runat="server" ID="dgSOAP" AutoGenerateColumns="False">
                            <Columns>
                                <asp:BoundColumn HeaderStyle-CssClass="subtitulos" ItemStyle-CssClass="textostabla" DataField="Estado" HeaderText="Estado">
                                    <ItemStyle Wrap="false" />
                                    <HeaderStyle  Wrap="false" />
                                </asp:BoundColumn>
                                <asp:BoundColumn HeaderStyle-CssClass="subtitulos" ItemStyle-CssClass="textostabla" DataField="RUT" HeaderText="RUT Cliente">
                                    <ItemStyle Wrap="false" />
                                    <HeaderStyle  Wrap="false" />
                                </asp:BoundColumn>
                                <asp:BoundColumn HeaderStyle-CssClass="subtitulos" ItemStyle-CssClass="textostabla" DataField="Nombre" HeaderText="Nombre Cliente">
                                    <ItemStyle Wrap="false" />
                                    <HeaderStyle  Wrap="false" />
                                </asp:BoundColumn>
                                <asp:BoundColumn HeaderStyle-CssClass="subtitulos" ItemStyle-CssClass="textostabla" DataField="Patente" HeaderText="Patente">
                                    <ItemStyle Wrap="false" />
                                    <HeaderStyle  Wrap="false" />
                                </asp:BoundColumn>
                                <asp:BoundColumn HeaderStyle-CssClass="subtitulos" ItemStyle-CssClass="textostabla" DataField="Tipo" HeaderText="Tipo Veh&iacute;culo">
                                    <ItemStyle Wrap="false" />
                                    <HeaderStyle  Wrap="false" />
                                </asp:BoundColumn>
                                <asp:BoundColumn HeaderStyle-CssClass="subtitulos" ItemStyle-CssClass="textostabla" DataField="Marca" HeaderText="Marca">
                                    <ItemStyle Wrap="false" />
                                    <HeaderStyle  Wrap="false" />
                                </asp:BoundColumn>
                                <asp:BoundColumn HeaderStyle-CssClass="subtitulos" ItemStyle-CssClass="textostabla" DataField="Modelo" HeaderText="Modelo">
                                    <ItemStyle Wrap="false" />
                                    <HeaderStyle  Wrap="false" />
                                </asp:BoundColumn>
                                <asp:BoundColumn HeaderStyle-CssClass="subtitulos" ItemStyle-CssClass="textostabla" DataField="Anio" HeaderText="A&ntilde;o">
                                    <ItemStyle Wrap="false" />
                                    <HeaderStyle  Wrap="false" />
                                </asp:BoundColumn>
                                <asp:BoundColumn HeaderStyle-CssClass="subtitulos" ItemStyle-CssClass="textostabla" DataField="Fecha_WS" HeaderText="Fecha">
                                    <ItemStyle Wrap="false" />
                                    <HeaderStyle  Wrap="false" />
                                </asp:BoundColumn>
                            </Columns>
                        </anthem:DataGrid>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="200" border="0">
                            <tr>
                                <td>
                                    <anthem:Button CssClass="botones01" runat="server" ID="btnSalir" Text="Salir" />
                                </td>
                                <td>&nbsp;</td>
                                <td>
                                    <anthem:Button CssClass="botones011" runat="server" ID="btnExcel"
                                        Text="Exportar Excel" EnableCallBack="False" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>